#################################################
# pyramid makefile v2.0
# Markus Wienhoefer
#################################################

# set this to dbg or opt
LIBTYPE ?= dbg

# path to your osg-config
OSGCONFIG=/usr/local/bin/osg-config

SYSTEM := $(shell uname)

CCFLAGS = $(shell $(OSGCONFIG) --cflags --$(LIBTYPE) Base System $(ADDLIB) GLUT)
LDFLAGS = $(LINK) $(shell $(OSGCONFIG) --libs --$(LIBTYPE) Base System $(ADDLIB) GLUT)

CC = gcc

OBJS = sandbox.o

sandbox: ${OBJS}
	${CC} -o sandbox ${CCFLAGS} ${OBJS} ${LDFLAGS} fmod/libfmod-3.75.so


sandbox.o: sandbox.cpp
	${CC} ${CCFLAGS} -c sandbox.cpp

clean:
	rm -f pyramid ${OBJS}
	@echo "all cleaned up!"
